/*
 * ==============================================================================
 Name		: MusicInterceptContainer2.h
 Author		:  
 Copyrigh	: Your copyright notice
 Description	: Declares container class for application.
 * ==============================================================================
 */

#ifndef __MUSICINTERCEPT_CONTAINER2_H__
#define __MUSICINTERCEPT_CONTAINER2_H__

// INCLUDES
#include <aknview.h>

// CLASS DECLARATION

/**
 *  CMusicInterceptContainer2 container control class.
 *  An instance of CMusicInterceptContainer2 contains the view drawn to the screen
 *  for CMusicInterceptView2
 */
class CMusicInterceptContainer2 : public CCoeControl
	{
public:
	// Constructors and destructor

	/**
	 * NewL.
	 * Two-phased constructor.
	 * Create a CMusicInterceptContainer2 object, which will draw itself to aRect
	 * @param aRect The rectangle this view will be drawn to.
	 * @return a pointer to the created instance of CMusicInterceptContainer2.
	 */
	static CMusicInterceptContainer2* NewL(const TRect& aRect);

	/**
	 * NewLC.
	 * Two-phased constructor.
	 * Create a CMusicInterceptContainer2 object, which will draw itself to aRect
	 * @param aRect The rectangle this view will be drawn to.
	 * @return a pointer to the created instance of CMusicInterceptContainer2.
	 */
	static CMusicInterceptContainer2* NewLC(const TRect& aRect);

	/**
	 * ConstructL
	 * 2nd phase constructor.
	 * @param aRect Frame rectangle for container.
	 */
	void ConstructL(const TRect& aRect);

public:
	// from CoeControl

	/**
	 * CountComponentControls
	 * @return number of controls inside this container.
	 */
	TInt CountComponentControls() const;

	/**
	 * ComponentControl
	 * @param Index number of the control.
	 * @return Pointer of controls inside this container.
	 */
	CCoeControl* ComponentControl(TInt aIndex) const;

	/**
	 * Draw
	 * Draw this CMusicInterceptContainer2 to the screen.
	 * @param aRect the rectangle of this view that needs updating
	 */
	void Draw(const TRect& aRect) const;

	};

#endif // __MUSICINTERCEPT_CONTAINER2_H__
// End of File